﻿@model IEnumerable<TCC.CMFlow.Models.ModuloSistema>

@{
    var _perfilAcessoID = Convert.ToInt32(ViewData["PerfilAcessoID"]);
}

<table class="table table-condensed">
    <tr>
        <th>
            Modulo
        </th>
        <th>
            Permissões
        </th>
        <th>
            Ação
        </th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Nome)
            </td>
            <td>
                @Html.Action("Permissoes", new { perfilAcessoID = _perfilAcessoID, moduloSistemaID = item.ID })
            </td>
            <td>
                <a data-modal="" class="btn" href="@Url.Action("ConfigurarPermissao", new { perfilAcessoID = _perfilAcessoID, moduloSistemaID = item.ID })" id="btnEdit"><span class="glyphicon glyphicon-cog"></span></a>
                <a data-modal="" class="btn" href="@Url.Action("DeletePermissao", new { perfilAcessoID = _perfilAcessoID, moduloSistemaID = item.ID })" id="btnDelete"><span class="glyphicon glyphicon-ban-circle"></span></a>
            </td>
        </tr>
    }
</table>